Optimal. Leaf size=55 \[ \frac {\tanh ^{-1}\left (\sin \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}+\frac {\sec \left (a+b \log \left (c x^n\right )\right ) \tan \left (a+b \log \left (c x^n\right )\right )}{2 b n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {3853, 3855}
\begin {gather*} \frac {\tanh ^{-1}\left (\sin \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}+\frac {\tan \left (a+b \log \left (c x^n\right )\right ) \sec \left (a+b \log \left (c x^n\right )\right )}{2 b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \frac {\sec ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \sec ^3(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=\frac {\sec \left (a+b \log \left (c x^n\right )\right ) \tan \left (a+b \log \left (c x^n\right )\right )}{2 b n}+\frac {\text {Subst}\left (\int \sec (a+b x) \, dx,x,\log \left (c x^n\right )\right )}{2 n}\\ &=\frac {\tanh ^{-1}\left (\sin \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}+\frac {\sec \left (a+b \log \left (c x^n\right )\right ) \tan \left (a+b \log \left (c x^n\right )\right )}{2 b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 55, normalized size = 1.00 \begin {gather*} \frac {\tanh ^{-1}\left (\sin \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n}+\frac {\sec \left (a+b \log \left (c x^n\right )\right ) \tan \left (a+b \log \left (c x^n\right )\right )}{2 b n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.26, size = 59, normalized size = 1.07
method | result | size |
derivativedivides | \(\frac {\frac {\sec \left (a +b \ln \left (c \,x^{n}\right )\right ) \tan \left (a +b \ln \left (c \,x^{n}\right )\right )}{2}+\frac {\ln \left (\sec \left (a +b \ln \left (c \,x^{n}\right )\right )+\tan \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{2}}{n b}\) | \(59\) |
default | \(\frac {\frac {\sec \left (a +b \ln \left (c \,x^{n}\right )\right ) \tan \left (a +b \ln \left (c \,x^{n}\right )\right )}{2}+\frac {\ln \left (\sec \left (a +b \ln \left (c \,x^{n}\right )\right )+\tan \left (a +b \ln \left (c \,x^{n}\right )\right )\right )}{2}}{n b}\) | \(59\) |
risch | \(-\frac {i c^{i b} \left (x^{n}\right )^{i b} \left (c^{2 i b} \left (x^{n}\right )^{2 i b} {\mathrm e}^{\frac {3 b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {3 b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{-\frac {3 b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {3 b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{3 i a}-{\mathrm e}^{\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{i a}\right )}{b n \left (\left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )} {\mathrm e}^{-b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )} {\mathrm e}^{b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )} {\mathrm e}^{2 i a}+1\right )^{2}}+\frac {\ln \left (c^{i b} \left (x^{n}\right )^{i b} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{i a}+i\right )}{2 b n}-\frac {\ln \left (c^{i b} \left (x^{n}\right )^{i b} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right )}{2}} {\mathrm e}^{\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}} {\mathrm e}^{-\frac {b \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{2} \mathrm {csgn}\left (i c \right )}{2}} {\mathrm e}^{i a}-i\right )}{2 b n}\) | \(557\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.38, size = 100, normalized size = 1.82 \begin {gather*} \frac {\cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} \log \left (\sin \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + 1\right ) - \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2} \log \left (-\sin \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right ) + 1\right ) + 2 \, \sin \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{4 \, b n \cos \left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec ^{3}{\left (a + b \log {\left (c x^{n} \right )} \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.30, size = 178, normalized size = 3.24 \begin {gather*} \frac {\ln \left (-\frac {1{}\mathrm {i}}{x}-\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}}{x}\right )}{2\,b\,n}-\frac {\ln \left (\frac {1{}\mathrm {i}}{x}-\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}}{x}\right )}{2\,b\,n}+\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}\,2{}\mathrm {i}}{b\,n\,\left (2\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}+{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}+1\right )}-\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,1{}\mathrm {i}}\,1{}\mathrm {i}}{b\,n\,\left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________